package com.jj.Dialect;


import org.springframework.data.redis.core.RedisTemplate;
import org.thymeleaf.dialect.AbstractProcessorDialect;
import org.thymeleaf.processor.IProcessor;

import java.util.HashSet;
import java.util.Set;

public class SysDialect extends AbstractProcessorDialect {

    private RedisTemplate redisTemplate;

    protected SysDialect(RedisTemplate redisTemplate) {
        super("", "", 1000);

        this.redisTemplate=redisTemplate;
    }

    @Override
    public Set<IProcessor> getProcessors(String s) {
        Set<IProcessor> set = new HashSet<IProcessor>();
        set.add(new MenuIterator(redisTemplate));
        set.add(new RoleBtnShowProcessor(redisTemplate));
        return set;
    }
}
